Add ip-in-menu-bar extension#27283
Conversation
- fix prettier style - Initial commit
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
- Initial commit - remove images from readme - fix prettier style - Initial commit
Greptile SummaryThis PR adds a new
Confidence Score: 5/5Safe to merge; the extension is well-structured and the caching/network-detection logic is sound All changed files are new (no regressions possible), dependencies match imports, and the one flagged issue is a cosmetic edge case where the menu bar title briefly shows "Loading…" for a local IP option that has no address — it self-corrects and affects only users who select a local IP family their adapter doesn't support No files require special attention Important Files Changed
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
extensions/ip-in-menu-bar/src/ip-in-menu-bar.tsx:126
**`isLoading` leaks into local-IP title display**
`isLoading` tracks the public IP fetch, but it is also applied when the active menu bar option is `"Local IPv4"` or `"Local IPv6"`. If the active adapter has no IP for the selected family (e.g., an IPv6-only adapter with `"Local IPv4"` chosen), the menu bar momentarily shows `"Loading…"` while the unrelated public-IP request is in flight, then snaps to `"—"`. Consider guarding `isLoading` to only apply for public-IP options: `const menuTitle = activeMenubarOption.ip ?? (isLoading && activeMenubarOption.name.startsWith("Public") ? "Loading…" : "—")`.
Reviews (3): Last reviewed commit: "fix: only update cache if ips are presen..." | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
- Merge branch \'contributions/merge-1778427435797\' - Pull contributions - update changelog - update categories list
0xdhrv
left a comment
There was a problem hiding this comment.
Thanks for your contribution 🔥
We already have an extension in the Store that deals with this. Could we consider enhancing the existing extension below instead of creating another one?
The current menu bar command can be added to the existing extension.
If there are unique features or workflows you’re aiming to add, we’d love to hear them and see if they can be integrated into this to avoid duplication and improve discoverability.
This would help avoid duplication and keep related functionality consolidated in one place.
As mentioned in our extension guidelines here ↗
Description
This PR introduces the IP in Menu Bar Raycast extension.
The extension displays your public or local IP address directly in the macOS menu bar, always visible at a glance without opening any window.
Key Features:
Shows public (IPv4/IPv6) or local IP in the menu bar — user's choice.
Smart caching: public IP is refreshed every 15 minutes or when the network changes
Click any address to copy it to the clipboard instantly.
Supports multiple local network adapters with a built-in picker.
Detects network changes via adapter fingerprinting to keep addresses in sync.
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder